/*
 *  $Id: CitadelOfWater.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Lands {
    public class CitadelOfWater: LandCard {
        public CitadelOfWater(): base("001_w_l_citadel_of_water") {
            Level = CompleteLevel.Final;
            Element = ElementType.Water;
            Value = 100;
            AddManaCost(ElementType.Water, 3);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Water, 3));
            affects.Add<CitadelOfWaterAura>();
        }

        private class CitadelOfWaterAura: DefenceAuraAffect {
            public override string Id {
                get { return AffectManager.GetCardId<CitadelOfWater>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new CitadelOfWaterDefence();
            }
        }

        private class CitadelOfWaterDefence: SpellAffect<CitadelOfWater> {
            public CitadelOfWaterDefence(): base(true) {
                DefaultName = true;
                Add(new Affects.ModDamage(-1));
                Add(new Affects.ModMaxHealth(2));
            }
        }
    }
}
